package com.ruoyi.ai.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.OrderBy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 关注管理对象 ai_follow
 * 
 * @author tang
 * @date 2024-12-10
 */
@Data
@TableName("ai_user_follow")
public class AiUserFollow
{
    @TableField("follower_id")
    @NotNull(message = "关注者的用户不能为空")
    private Long followerId;

    @NotNull(message = "被关注者的用户不能为空")
    @TableField("followee_id")
    private Long followeeId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_date",fill = FieldFill.INSERT)
    @OrderBy(asc = false,sort = 1)
    private Date createDate;
}
